package com.wl.api.common.utils;

public enum MessageCodeEnum implements MessageCode, MessageMes {

	request_success("200", "success"),
	request_is_illegal(REQUEST_IS_ILLEGAL_CODE, request_is_illegal_mes),
	request_out_of_shipping_range(REQUEST_OUT_OF_SHIPPING_RANGE_CODE, REQUEST_OUT_OF_SHIPPING_RANGE_MES),
	insufficient_balance_in_your_amount(INSUFFICIENT_BALANCE_IN_YOUR_AMOUNT_CODE, INSUFFICIENT_BALANCE_IN_YOUR_AMOUNT_MES);
	
	String code;
	String message;
	MessageCodeEnum(String code ,String message) {
		this.code = code;
		this.message = message;
	}
	
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	
}

interface MessageMes {
	String  request_is_illegal_mes = "请求不合法";
	String REQUEST_OUT_OF_SHIPPING_RANGE_MES ="超出运送范围";
	String INSUFFICIENT_BALANCE_IN_YOUR_AMOUNT_MES	 = "你的账户余额不足";
	
}

interface MessageCode {
	
	String REQUEST_IS_ILLEGAL_CODE = "400_10_001";
	String REQUEST_OUT_OF_SHIPPING_RANGE_CODE ="200_10_001";
	String INSUFFICIENT_BALANCE_IN_YOUR_AMOUNT_CODE = "200_10_002";
}